const p = new Promise((resolve, reject) => {
  setTimeout(() => {
    resolve(1)

  }, 100);
}).then(val => {
  console.log('then', val)
  return 2
}, val => {
  console.log('catch', val)
  return 3
})
console.log(p)